package com.yuxi.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.util.Date;
import com.yuxi.common.StringUtil;
import java.util.List;
import java.util.stream.Collectors;
import com.yuxi.pubInter.baseVO.AbstractPageVO;

/**
*    @author sunke
*    @Date 2023-10-13 10:05:02
*    @description AdminDetailDomainVO      系统用户
*/

@Data
@ApiModel("系统用户DetailDomainVO")
public class AdminDetailDomainVO extends AdminDomainVO {
    private List<AdminPermissionGroupDetailDomainVO> adminPermissionGroupList;
    private String groupNames;
    public String getGroupNames() {
        if(StringUtil.isNotObjEmpty(adminPermissionGroupList)){
            groupNames=adminPermissionGroupList.stream().map(AdminPermissionGroupDetailDomainVO::getGroupName).distinct().collect(Collectors.joining("、"));
        }
        return groupNames;
    }

}